package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * The persistent class for the ticci_vehiculo database table.
 * 
 */
@Entity
@Table(name="ticci_vehiculo")
@NamedQuery(name="TicciVehiculo.findAll", query="SELECT t FROM TicciVehiculo t")
public class TicciVehiculo implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TicciVehiculoPK id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="VEHI_FECHA_INGRESO")
	private Date vehiFechaIngreso;

	@Column(name="VEHI_MARCA")
	private String vehiMarca;

	@Column(name="VEHI_MODELO")
	private String vehiModelo;

	@Column(name="VEHI_PLACA")
	private String vehiPlaca;

	@Column(name="VEHI_REFERENCIA")
	private String vehiReferencia;

	@Column(name="CLIE_CONS")
	private Long clieCons;
	
	@Column(name="MAES_CLASIFICACION")
	private Long maesClasificacion;
	
	//bi-directional many-to-one association to TicciCliente
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="CLIE_CONS", referencedColumnName="CLIE_CONS", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false)
		})
	private TicciCliente ticciCliente;

	//bi-directional many-to-one association to TicciMaestro
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="MAES_CLASIFICACION", referencedColumnName="MAES_CONS", insertable=false, updatable=false)
		})
	private TicciMaestro ticciMaestro;

	public TicciVehiculo() {
	}

	public TicciVehiculoPK getId() {
		return this.id;
	}

	public void setId(TicciVehiculoPK id) {
		this.id = id;
	}

	public Date getVehiFechaIngreso() {
		return this.vehiFechaIngreso;
	}

	public void setVehiFechaIngreso(Date vehiFechaIngreso) {
		this.vehiFechaIngreso = vehiFechaIngreso;
	}

	public String getVehiMarca() {
		return this.vehiMarca;
	}

	public void setVehiMarca(String vehiMarca) {
		this.vehiMarca = vehiMarca;
	}

	public String getVehiModelo() {
		return this.vehiModelo;
	}

	public void setVehiModelo(String vehiModelo) {
		this.vehiModelo = vehiModelo;
	}

	public String getVehiPlaca() {
		return this.vehiPlaca;
	}

	public void setVehiPlaca(String vehiPlaca) {
		this.vehiPlaca = vehiPlaca;
	}

	public String getVehiReferencia() {
		return this.vehiReferencia;
	}

	public void setVehiReferencia(String vehiReferencia) {
		this.vehiReferencia = vehiReferencia;
	}

	public TicciCliente getTicciCliente() {
		return this.ticciCliente;
	}

	public void setTicciCliente(TicciCliente ticciCliente) {
		this.ticciCliente = ticciCliente;
	}	

	public TicciMaestro getTicciMaestro() {
		return this.ticciMaestro;
	}

	public void setTicciMaestro(TicciMaestro ticciMaestro) {
		this.ticciMaestro = ticciMaestro;
	}

}